Reuse of Fixture Setup between Test Classes

نویسندگان

  • Lucas Pereira da Silva
  • Patricia Vilain
چکیده

In this paper, we describe commonly used fixture setup strategies as well as their disadvantages and advantages. We propose a dependency model and a test fixture sharing model that allow the definition of a new fixture setup strategy. This strategy promotes code reuse by sharing fixture setups between test classes. The models are evaluated through a case study where the new fixture setup strategy presented a reduction of 47,62% in the fixture setup code. Keywords-software testing, unit testing, fixture setup; test fixture; test dependencies; test code reuse

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fixture Setup through Object Notation for Implicit Test Fixtures

Corresponding Author: Douglas Hiura Longo Department of Informatics and Statistic, Federal University of Santa Catarina, Florianópolis, Brazil Email: [email protected] Abstract: This paper presents an approach to the development of fixture setup code through an objects notation that is applied on implicit test fixtures. This approach is integrated with a management mechanism to call the fi...

متن کامل

Reusing and Composing Tests with Traits

Single inheritance often forces developers to duplicate code and logic. This widely recognized situation affects both business code and tests. In a large and complex application whose classes implement many groups of methods (protocols), duplication may also follow the application’s idiosyncrasies, making it difficult to specify, maintain, and reuse tests. The research questions we faced are (i...

متن کامل

An Iterative Approach to System Setup Problems in Flexible Manufacturing Systems

System setup problems in flexible manufacturing systems deal with short-term planning problems such as part type selection, machine grouping, operation assignment, tooling, fixture and pallet allocation, and routing. In this article, we consider three of the subproblems: part type selection, machine grouping, and loading. We suggest a heuristic approach to solve the subproblems consistently wit...

متن کامل

Generative Acceptance Testing for Difficult-to-Test Software

While there are many excellent acceptance testing tools and frameworks available today, this paper presents an alternative approach, involving generating code from tests specified in a declarative tabular format within Excel spreadsheets. While this is a general approach, it is most applicable to difficultto-test situations. Two such situations are presented: one involving complex fixture setup...

متن کامل

Study of Computer-Aided Design Process and Methods Based on Welding Fixture

Although various computer-aided fixture design (CAFD) systems have been developed to assist the designer during the various stages of fixture design, most of previous computer aided fixture design research has mainly concentrated on machining fixtures rather than welding fixtures. The development of complicated computer aided welding fixture design (CAWFD) system has received much less attentio...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017